
cat /etc/issue /etc/centos-release 2>/dev/null|grep -q "release"&&OS="RedHat"
cat /etc/issue /etc/centos-release 2>/dev/null|grep -q "Ubuntu"&&OS="Debian"
if [ "$OS" = "RedHat" ];then
        wget -q https://s.xabcloud.com/file/MariaDB.repo -O /etc/yum.repos.d/MariaDB.repo
	yum -y install mariadb mariadb-server
	systemctl start mariadb
	systemctl enable mariadb
	mysql_secure_installation
fi
if [ "$OS" = "Debian" ];then 
	apt-get -y install mysql-server
fi
